﻿@using Mulala.Cavan.Presentation.Mvc.Controller
@using Mulala.Cavan.Domain.MainBoundedContext.Setting
@model Mulala.Cavan.Presentation.Mvc.ViewModel.ISearchBoxViewModel
<div class="seach_top">
    <ul>
        <li class="search_xl">
            <select>
                <option value="#">找保姆</option>
                <option value="#">找月嫂</option>
            </select></li>
        <li>
            <input type="text" value="请输入保姆信息" id="Name" onfocus="OnFocusFun(this,'请输入保姆信息')"
                style="color: #999" onblur="OnBlurFun(this,'请输入保姆信息')" /></li>
        <li class="submit">
            <input class="search_submit" type="submit" value="找保姆" /></li>
    </ul>
</div>
<div class="search_remen">
    <ul>
        <li><span>&nbsp;热门公司：</span>
            @foreach (var corporation in @Model.HotCorporations)
            {
                @Html.ActionLink(corporation.FullName, ActionConst.DETAIL, ControllerConst.CORPORATION, new { id = corporation.ID }); @Html.Raw("&nbsp;&nbsp;&nbsp;");
            }</li>
        <li><span>从区域开始：</span>
            @{
                var startAreaUrlTemplate = Project.Settings.HostServer + "/{0}/" + ControllerConst.NANNY + "/" + ActionConst.LIST;
                var startAreaUrl = string.Empty;
            }
            @foreach (var area in @Model.StartAreas)
            {
                startAreaUrl = string.Format(startAreaUrlTemplate, area.Spell);
                <a href="@startAreaUrl">@area.Name</a>Html.Raw("&nbsp;");
            }</li>
        <li><span>从年限开始：</span>
            @{
                var startExperienceUrlTemplate = Project.Settings.HostServer + "/" + ControllerConst.NANNY + "/" + ActionConst.LIST + "/cp1_e{0}";
                var startExperienceUrl = string.Empty;
            }
            @foreach (var tag in @Model.StartExperiences)
            {
                startExperienceUrl = string.Format(startExperienceUrlTemplate, tag.Value);
                <a href="@startExperienceUrl">@tag.Text</a>Html.Raw("&nbsp;");
            }&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;@Html.ActionLink("更多搜索条件>>", ActionConst.LIST, ControllerConst.NANNY)</li>
    </ul>
</div>

